package com.jihui.user.model;

import org.jetbrains.annotations.Nullable;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by wangjin on 2017/5/19.
 */
public interface UserManager {
    @RequestMapping(method = RequestMethod.GET, value = "/add")
    Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);

    /**
     * 根据用户id查询用户对象
     * @param userId 用户id
     */
    @RequestMapping(method = RequestMethod.GET, value = "/findById")
    JihuiUser findById(@RequestParam(value = "userId") Long userId);

    /**
     * 通过用户登录名查找用户
     *
     * @param userName 用户名称
     * @return 返回账户列表
     */
    @RequestMapping(method = RequestMethod.GET, value = "/login")
    JihuiUser login(@RequestParam(value ="userName") String userName, @RequestParam(value ="password") String password, @RequestParam(value ="ip") String ip) throws Exception;
}
